package com.xtx.air.dataobject;

import java.util.Collections;
import java.util.List;

import com.xtx.dataobject.PageInfo;

public class FlightDO extends PageInfo {
	private static final long serialVersionUID = 8130551794267129182L;
	private Long fid;// 主键
	private String flight_num;// 航班号
	private String flight_company;// 航空公司
	private String start_airport;// 出发机场
	private String start_city;// 出发城市
	private String start_time;// 出发时间
	private String start_terminal;// 出发航站楼
	private String end_airport;// 到达机场
	private String end_city;// 到达城市
	private String end_time;// 到达时间
	private String end_terminal;// 到达航站楼
	private String standard_fee;// 标准价格
	private String build_fee;// 机场建设费
	private String fuel_fee;// 燃油附加费
    private String milage;//里程

    private String flight_short_name;
    private Long creator_id;//添加者ID

	private List<FlightStorageDO> storages = Collections.emptyList();// 库存信息

    public Long getFid() {
        return fid;
    }

    public void setFid(Long fid) {
        this.fid = fid;
    }

    public String getFlight_num() {
		return flight_num;
	}

	public void setFlight_num(String flight_num) {
		this.flight_num = flight_num;
	}

	public String getFlight_company() {
		return flight_company;
	}

	public void setFlight_company(String flight_company) {
		this.flight_company = flight_company;
	}

	public String getStart_airport() {
		return start_airport;
	}

	public void setStart_airport(String start_airport) {
		this.start_airport = start_airport;
	}

	public String getStart_city() {
		return start_city;
	}

	public void setStart_city(String start_city) {
		this.start_city = start_city;
	}

	public String getStart_time() {
		return start_time;
	}

	public void setStart_time(String start_time) {
		this.start_time = start_time;
	}

	public String getStart_terminal() {
		return start_terminal;
	}

	public void setStart_terminal(String start_terminal) {
		this.start_terminal = start_terminal;
	}

	public String getEnd_airport() {
		return end_airport;
	}

	public void setEnd_airport(String end_airport) {
		this.end_airport = end_airport;
	}

	public String getEnd_city() {
		return end_city;
	}

	public void setEnd_city(String end_city) {
		this.end_city = end_city;
	}

	public String getEnd_time() {
		return end_time;
	}

	public void setEnd_time(String end_time) {
		this.end_time = end_time;
	}

	public String getEnd_terminal() {
		return end_terminal;
	}

	public void setEnd_terminal(String end_terminal) {
		this.end_terminal = end_terminal;
	}

	public String getStandard_fee() {
		return standard_fee;
	}

	public void setStandard_fee(String standard_fee) {
		this.standard_fee = standard_fee;
	}

	public String getBuild_fee() {
		return build_fee;
	}

	public void setBuild_fee(String build_fee) {
		this.build_fee = build_fee;
	}

	public String getFuel_fee() {
		return fuel_fee;
	}

	public void setFuel_fee(String fuel_fee) {
		this.fuel_fee = fuel_fee;
	}

	public List<FlightStorageDO> getStorages() {
		return storages;
	}

	public void setStorages(List<FlightStorageDO> storages) {
		this.storages = storages;
	}

    public Long getCreator_id() {
        return creator_id;
    }

    public void setCreator_id(Long creator_id) {
        this.creator_id = creator_id;
    }

    public String getFlight_short_name() {
        if(flight_num != null){
            return flight_num.substring(0,2);
        }
        return null;
    }

    public String getMilage() {
        return milage;
    }

    public void setMilage(String milage) {
        this.milage = milage;
    }
}